#ifndef PLAYLISTVIEWER_H
#define PLAYLISTVIEWER_H

#include <QDialog>
#include <QTabWidget>
#include <QPushButton>
#include <vector>
#include <QMap>

#include <boost/shared_ptr.hpp>
#include "childwindowbase.h"

class SingleClient;
class QTableWidget;

class PlayListViewer : public ChildWindowBase
{
	Q_OBJECT
public:
	explicit PlayListViewer(ChildWindowBase* parent = NULL);
private slots:
	void onArragePlanButton();
private:
	void setupTabs();
private:
	QTabWidget* m_GroupTab;
	QPushButton* m_ArrangePlanButton;
	std::vector<boost::shared_ptr<SingleClient> > m_ClientList;
	QMap<int,QTableWidget *> m_IdtoTab;

protected:
	void showGroupView(int groupId);
};

#endif // PLAYLISTVIEWER_H
